
//引入userdao
let userdao = require("../../dao/userDao");

//测试根据用户和密码查询用户
/* let result = userdao.getUserByusernameAndPwd("test","123456");
result.then((data)=>{
    console.log(data)
}) */ 
//测试根据用户查询用户
/* let result = userdao.getUserByUsername("test2");
result.then((data)=>{
    console.log(data)
}) */
/* //测试添加用户
 let result = userdao.insertUser("test10","123456");
result.then((data)=>{
    console.log(data)
})  */

//测试根据id查询学生
let result = userdao.getStudentById("62f3467c47a2c6efad423945")
result.then((data)=>{
    console.log(data)
}) 